﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 物料分类表
    /// </summary>
    public partial class TMaterialCategory
    {
        /// <summary>
        /// 自增ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        [StringLength(50)]
        public string Name { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public int? CreateUserId { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string CreateUserName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 更新人Id
        /// </summary>
        public int? UpdateUserId { get; set; }

        /// <summary>
        /// 更新人姓名
        /// </summary>
        public string UpdateUserName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateDate { get; set; }

        /// <summary>
        /// 上级分类
        /// </summary>
        public int? ParentId { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int? DisplayOrder { get; set; }
        
        /// <summary>
        /// 物料编码
        /// </summary>
        public string? Code { get; set; }

        /// <summary>
        /// 当前登陆人Id
        /// </summary>
        [NotMapped]
        public int NowUserId { get; set; }

        /// <summary>
        /// 当前登陆人真实姓名
        /// </summary>
        [NotMapped]
        public string NowUserRealName { get; set; }
    }
}
